/*            Copyright(c) 2006-2008 Dave Sexton           *
 * http://www.codeplex.com/DocProject                      *
 * http://www.codeplex.com/DocProject/Project/License.aspx *
 ***********************************************************/
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace DaveSexton.DocProject.DocSites.Configuration
{
	public sealed class DocSiteConfigurationSection : ConfigurationSection
	{
		#region Public Properties
		[ConfigurationProperty("defaultSearchProvider", DefaultValue = "DocSiteMemorySearchProvider")]
		[StringValidator(MinLength = 1)]
		public string DefaultSearchProvider
		{
			get
			{
				return base["defaultSearchProvider"] as string;
			}
			set
			{
				base["defaultSearchProvider"] = value;
			}
		}

		[ConfigurationProperty("searchProviders")]
		public ProviderSettingsCollection SearchProviders
		{
			get
			{
				return (ProviderSettingsCollection) base["searchProviders"];
			}
		}
		#endregion

		#region Constructors
		/// <summary>
		/// Constructs a new instance of the <see cref="DocSiteConfigurationSection" /> class.
		/// </summary>
		public DocSiteConfigurationSection()
		{
		}
		#endregion
	}
}
